﻿@model PlmSupervisorLogViewModel
@{
    Layout = null;
    ViewBag.Title = "监理员日志添加";
}
<form method="post" action="/PlmSupervisorLog/SupervisorLogAddHandle" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone)">
    @Html.HiddenFor(m => m.OperationType, new { Value = @ViewBag.OperationType })
    @Html.HiddenFor(model => model.ThePlmSupervisorlog.Sl_ID)
    <div class="pageContent">
        <div class="pageFormContent sortDrag" layouth="60">
            <table width="98%" class="tab012">
                <tr>
                    <td class="td2" colspan="4" style="background-color: #e3effc; color: #045795; font-weight: bold; border: 1px solid #bbd9f9">监理员日志</td>
                </tr>
                <tr style="display: none">
                    <td>操作人：</td>
                    <td>
                        @Html.TextBoxFor(model => model.ThePlmSupervisorlog.Sl_UserName, new { @readonly = "true", Value = "管理员" })
                    </td>
                    <td>操作日期：</td>
                    <td>
                        @Html.TextBoxFor(model => model.ThePlmSupervisorlog.Sl_UpdateTime, new { @readonly = "true", Value = @DateTime.Now.ToString("yyyy-MM-dd") })
                    </td>
                    <tr>
                        <td class="td1" style="width: 24%">标段：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSupervisorlog.Sl_ContractNumber
                        </td>
                        <td class="td1" style="width: 24%">专业职位：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSupervisorlog.Sl_SpecialtyPosition
                        </td>
                    </tr>

                <tr>
                    <td class="td1" style="width: 24%">记录人：</td>
                    <td class="td2" style="width: 26%">
                        @Model.ThePlmSupervisorlog.Sl_RecordUser
                    </td>
                    <td class="td1" style="width: 24%">记录日期：</td>
                    <td class="td2" style="width: 26%">
                        @Model.ThePlmSupervisorlog.Sl_RecordDate.ToString("yyyy-MM-dd")
                    </td>
                </tr>
                <tr>
                    <td class="td1" style="width: 24%">监理单位：</td>
                    <td class="td2" style="width: 26%">
                        @Model.ThePlmSupervisorlog.Sl_SupervisorName
                    </td>
                    <td class="td1" style="width: 24%">监理范围：</td>
                    <td class="td2" style="width: 26%">
                        @Model.ThePlmSupervisorlog.Sl_SupervisorScope
                    </td>
                </tr>
                <tr>
                    <td class="td2" colspan="4" style="background-color: #e3effc; color: #045795; font-weight: bold; border: 1px solid #bbd9f9">监理日志</td>
                </tr>
                <tr>
                    <td class="td1" style="width: 24%">监理日志编号：</td>
                    <td class="td2" style="width: 26%">
                        @Model.ThePlmSupervisorlog.Sl_SupervisionNumber
                    </td>

                </tr>
                <tr>
                    <td class="td1" style="width: 24%">审核人：</td>
                    <td class="td2" style="width: 26%">
                        @Model.ThePlmSupervisorlog.Sl_AuditMan
                    </td>
                    <td class="td1" style="width: 24%">天气情况：</td>
                    <td class="td2" style="width: 26%">
                        @Model.ThePlmSupervisorlog.Sl_Weather
                    </td>
                </tr>
                <tr>
                    <td class="td1" style="width: 24%">主要施工情况：</td>
                    <td class="td2" style="width: 26%" colspan="3">
                        @Model.ThePlmSupervisorlog.Sl_ConstructionSituation
                    </td>
                </tr>
                <tr>
                    <td class="td1" style="width: 24%">监理主要工作：</td>
                    <td class="td2" style="width: 26%" colspan="3">
                        @Model.ThePlmSupervisorlog.Sl_SupervisorJob
                    </td>
                </tr>
                <tr>
                    <td class="td1" style="width: 24%">问题及处理情况：</td>
                    <td class="td2" style="width: 26%" colspan="3">
                        @Model.ThePlmSupervisorlog.Sl_ProblemsDispose
                    </td>
                </tr>
                 <tr>
                        <td class="td1" style="width: 24%">附件：</td>
                        <td class="td2" style="width: 26%" colspan="3">
                           <a href='/Common/UploaderFile/Uploader/?id=ZDFileID' width="710" height="460" rel="rel_WorkFlow_WorksMeasure_Attach" mask="true" target="dialog" title="附件管理">
                      <img src="/Content/themes/default/images/fj.gif" alt="查看附件" id='ZDFileID' 
                       uploaderoption="{MoudleID:@ViewBag.MoudleID,'ToSelectIDs':[@ViewBag.FileIds],'ToDeleteIDs':[@ViewBag.DeleteIds],BizDeleteURL:'/PersonnelLog/Base/Delete/',BizSaveUrl:'/PersonnelLog/Base/BatchAdd/',BizType:'SupervisorLog_Rules',BizID:'@ViewBag.AssisId','dirWhere':'@ViewBag.DirWhere'}" />
                       </a>
                        </td>
                    </tr>

                @for (int i = 0; i < Model.ThePlmSupervisorlogSubList.Count; i++)
                {
                    int j = i + 1;
                    <tr>
                        <td class="td2" colspan="4" style="background-color: #e3effc; color: #045795; font-weight: bold; border: 1px solid #bbd9f9">@("旁站记录")@j</td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">旁站记录编号：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSupervisorlogSubList[i].SlS_CheckNumber
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">合同段：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSupervisorlogSubList[i].SlS_ContractSection
                        </td>
                        <td class="td1" style="width: 24%">施工单位：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSupervisorlogSubList[i].SlS_ConstructionName
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">旁站人：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSupervisorlogSubList[i].SlS_SideMan
                        </td>
                        <td class="td1" style="width: 24%">旁站时间：</td>
                        <td class="td2" style="width: 26%">
                            @(Model.ThePlmSupervisorlogSubList[i].SlS_SideTime == null ? "" : Convert.ToDateTime(Model.ThePlmSupervisorlogSubList[i].SlS_SideTime).ToString("yyyy-MM-dd"))
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">旁站项目：</td>
                        <td class="td2" style="width: 26%" colspan="3">
                            @Model.ThePlmSupervisorlogSubList[i].SlS_SideProject
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">施工过程简述：</td>
                        <td class="td2" style="width: 26%" colspan="3">
                            @Model.ThePlmSupervisorlogSubList[i].SlS_ConstructionSketch
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">旁站工作情况：</td>
                        <td class="td2" style="width: 26%" colspan="3">
                            @Model.ThePlmSupervisorlogSubList[i].SlS_SideJob
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">主要数据记录：</td>
                        <td class="td2" style="width: 26%" colspan="3">
                            @Model.ThePlmSupervisorlogSubList[i].SlS_DateRecord
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">发现的问题及处理结果：</td>
                        <td class="td2" style="width: 26%" colspan="3">
                            @Model.ThePlmSupervisorlogSubList[i].SlS_DisposeResult
                        </td>
                    </tr>
                 
                }
                @for (int i = 0; i < Model.ThePlmSupervisorlogYBSubList.Count; i++)
                {
                    int j = i + 1;
                    <tr>
                        <td class="td2" colspan="4" style="background-color: #e3effc; color: #045795; font-weight: bold; border: 1px solid #bbd9f9">@("隐蔽工程记录")@j</td>
                    </tr>
                   
                    <tr>
                        <td class="td1" style="width: 24%">隐蔽工程记录编号：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSupervisorlogYBSubList[i].SlYS_CheckNumber
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">合同段：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSupervisorlogYBSubList[i].SlYS_ContractSection
                        </td>
                        <td class="td1" style="width: 24%">施工单位：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSupervisorlogYBSubList[i].SlYS_ConstructionName
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">旁站人：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSupervisorlogYBSubList[i].SlYS_SideMan
                        </td>
                        <td class="td1" style="width: 24%">旁站时间：</td>
                        <td class="td2" style="width: 26%">
                            @(Model.ThePlmSupervisorlogYBSubList[i].SlYS_SideTime == null ? "" : Convert.ToDateTime(Model.ThePlmSupervisorlogYBSubList[i].SlYS_SideTime).ToString("yyyy-MM-dd"))
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">旁站项目：</td>
                        <td class="td2" style="width: 26%" colspan="3">
                            @Model.ThePlmSupervisorlogYBSubList[i].SlYS_SideProject
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">施工过程简述：</td>
                        <td class="td2" style="width: 26%" colspan="3">
                            @Model.ThePlmSupervisorlogYBSubList[i].SlYS_ConstructionSketch
                        </td>
                    </tr>
                }
            </table>
        </div>

        <div class="formBar">
            <ul>
                <li>
                    <button type="button" class="close btn btn-default btn-sm">关闭</button>
                </li>
            </ul>
        </div>

    </div>
</form>

